import request from '@/utils/request'

export function loadQueOptions(id) {
  return request({
    url: '/management/question/' + id + '/loadQueOptions',
    method: 'post',
  })
}

export function getAll(data) {
  return request({
    url: '/management/question/getAll',
    method: 'post',
    data,
  })
}

export function getList(data) {
  return request({
    url: '/management/question/getList',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/management/question/doEdit',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  return doEdit(data)
}

export function doDelete(data) {
  return request({
    url: '/management/question/doDelete',
    method: 'post',
    data,
  })
}
